package zut.edu.cn.concertticketmanagementsystem.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zut.edu.cn.concertticketmanagementsystem.Dao.OrderFormDao;
import zut.edu.cn.concertticketmanagementsystem.dto.OrderDTO;
import zut.edu.cn.concertticketmanagementsystem.entity.OrderForm;
import zut.edu.cn.concertticketmanagementsystem.service.BuyerService;
import zut.edu.cn.concertticketmanagementsystem.service.OrderFormService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: heroma
 * Date: 6/23/19
 * Time: 11:25 AM
 * Description: No Description
 */
@Service
@Slf4j
public class BuyerServiceImpl implements BuyerService {
    @Autowired
    private OrderFormDao orderFormDao;

    @Override
    public List<OrderForm> findOrderByName(String buyerName) {
        return orderFormDao.findByBuyerName(buyerName);
    }

}
